
program kasat;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  a,b,x0,y0,x1,y1,r1,r2,c: real;
begin
  readln(x0,y0,x1,y1,r1,r2);
    b:=(2*(r1+r2)*(y1-y0)+2*(x1-x0)*sqrt((r1+r2)*(r1+r2)+(y1-y0)*(y1-y0)+(x1-x0)*(x1-x0)))/ (2*((y1-y0)*(y1-y0)+(x1-x0)*(x1-x0)))  ;
    a:=(2*(r1+r2)*(x1-x0)+2*(y1-y0)*sqrt((r1+r2)*(r1+r2)+(y1-y0)*(y1-y0)+(x1-x0)*(x1-x0))) / (2*((y1-y0)*(y1-y0)+(x1-x0)*(x1-x0)))  ;
    c:=r1-a*x0-b*y0;
    Writeln(a ,'* x + ', b, '*y +', c, '= 0 ');
    b:=(2*(r1+r2)*(y1-y0)+2*(x1-x0)*sqrt((r1+r2)*(r1+r2)+(y1-y0)*(y1-y0)+(x1-x0)*(x1-x0))) / (2*((y1-y0)*(y1-y0)+(x1-x0)*(x1-x0)))  ;
    a:=(2*(r1+r2)*(x1-x0)+2*(y1-y0)*sqrt((r1+r2)*(r1+r2)+(y1-y0)*(y1-y0)+(x1-x0)*(x1-x0))) / (2*((y1-y0)*(y1-y0)+(x1-x0)*(x1-x0)))  ;
    c:=r1-a*x0-b*y0;
    Writeln(a ,'* x + ', b, '*y +' ,c, '= 0 ');

    b:=(2*abs((r1-r2))*(y1-y0)+2*(x1-x0)*sqrt((r1-r2)*(r1-r2)+(y1-y0)*(y1-y0)+(x1-x0)*(x1-x0))) / (2*((y1-y0)*(y1-y0)+(x1-x0)*(x1-x0)))  ;
    a:=(2*abs((r1-r2))*(x1-x0)+2*(y1-y0)*sqrt((r1-r2)*(r1-r2)+(y1-y0)*(y1-y0)+(x1-x0)*(x1-x0))) / (2*((y1-y0)*(y1-y0)+(x1-x0)*(x1-x0)))  ;
    c:=r1-a*x0-b*y0;
    Writeln(a ,'* x + ', b, '*y +' ,c, '= 0 ');
    b:=(2*abs((r1-r2))*(y1-y0)-2*(x1-x0)*sqrt((r1-r2)*(r1-r2)+(y1-y0)*(y1-y0)+(x1-x0)*(x1-x0))) / (2*((y1-y0)*(y1-y0)+(x1-x0)*(x1-x0)))  ;
    a:=(2*abs((r1-r2))*(x1-x0)-2*(y1-y0)*sqrt((r1-r2)*(r1-r2)+(y1-y0)*(y1-y0)+(x1-x0)*(x1-x0))) / (2*((y1-y0)*(y1-y0)+(x1-x0)*(x1-x0)))  ;
    c:=r1-a*x0-b*y0;
    Writeln(a ,'* x + ', b, '*y +', c, '= 0 ');
    REadln;

end.

